package com.shujia.abstract_.exer1;

public class PersonTest {

    public static void main(String[] args) {
        Person zs = new Person();
        Bicycle bicycle = new Bicycle();
        zs.goHome(bicycle);

        Person ls = new Person();
        Subway subway = new Subway();
        ls.setVehicle(subway);
        ls.goHome();
    }
}
